import i18n from '../../i18n/i18n'
export const tableOption = {
  border: true,
  selection: false,
  index: false,
  indexLabel: i18n.t('publics.serial'),
  stripe: true,
  menuAlign: 'center',
  menuWidth: 250,
  align: 'center',
  refreshBtn: true,
  searchSize: 'mini',
  addBtn: false,
  editBtn: false,
  delBtn: false,
  viewBtn: false,
  props: {
    label: 'label',
    value: 'value'
  },
  column: [{
    label: i18n.t('coupon.couponName'),
    prop: 'couponName',
    searchLabelWidth: i18n.t('language') === 'language' ? 120 : 80,
    search: true
  }, {
    label: i18n.t('coupon.couponType'),
    prop: 'couponType',
    type: 'select',
    slot: true,
    dicData: [
      {
        value: 1,
        label: i18n.t('coupon.cashCoupon')
      }, {
        value: 2,
        label: i18n.t('coupon.discountVoucher')
      }, {
        value: 3,
        label: i18n.t('coupon.coinCertificate')
      }
    ]
  }, {
    label: i18n.t('coupon.startTime'),
    prop: 'startTime'
  }, {
    label: i18n.t('coupon.endTime'),
    prop: 'endTime'
  }, {
    label: i18n.t('coupon.expiredStatus'),
    prop: 'overdueStatus',
    searchLabelWidth: i18n.t('language') === 'language' ? 120 : 80,
    search: true,
    type: 'select',
    slot: true,
    dicData: [
      {
        value: 1,
        label: i18n.t('coupon.notExpired')
      }, {
        value: 0,
        label: i18n.t('coupon.expired')
      }
    ]
  }, {
    label: i18n.t('coupon.deliveryStatus'),
    prop: 'putonStatus',
    searchLabelWidth: i18n.t('language') === 'language' ? 120 : 80,
    search: true,
    type: 'select',
    slot: true,
    dicData: [
      {
        value: 1,
        label: i18n.t('coupon.putOnTheMarket')
      }, {
        value: 0,
        label: i18n.t('coupon.waitingForLaunch')
      }, {
        value: -1,
        label: i18n.t('coupon.cancelLaunch')
      }
    ]
  }, {
    label: i18n.t('coupon.stock'),
    prop: 'stocks'
  }, {
    label: i18n.t('dataAnalysis.receiveTimes'),
    prop: 'takeNum'
  }, {
    label: i18n.t('dataAnalysis.miniMallUsedTimes'),
    prop: 'useNum'
  }, {
    label: i18n.t('coupon.getWay'),
    prop: 'getWay',
    dicData: [
      {
        value: 0,
        label: i18n.t('coupon.receiveDirectly')
      }, {
        value: 1,
        label: i18n.t('coupon.exchangeOrSystemIssue')
      }
    ]
  }]
}
